import request from '@/utils/request'

export function login(data) {
  return request({
    baseURL: "http://192.168.38.2:8091",
    url: "/v1/admin/login",//'/vue-element-admin/user/login',
    // url: '/vue-element-admin/user/login',
    method: 'post',
    data
  })
}

export function getInfo() {
  return request({
    baseURL: "http://192.168.38.2:8091",
    url: "/v1/admin/workerinfo",
    // url: '/vue-element-admin/user/info',
    method: 'get'
    // params: { token }
  })
}

export function logout() {
  return request({
    baseURL: "http://192.168.38.2:8091",
    url: "/v1/admin/logout",
    // url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}